package com.epam.java.chat_study;

import java.io.IOException;
import java.util.Scanner;

import com.epam.java.chat_study.network.Networker;
import com.epam.java.chat_study.network.SocketNetworker;
import com.epam.java.chat_study.view.ConsoleView;
import com.epam.java.chat_study.view.View;

public class Messenger {
	public static final int MESSAGE_SIZE = 512;
	private View currentView;
	private Networker currentNetworker;

	public Messenger() {
		this.currentView = new ConsoleView();
		this.currentNetworker = new SocketNetworker();
		byte[] msg = new byte [MESSAGE_SIZE];
		String message;

		Scanner scanner = new Scanner(System.in);
		inf:
			for (;;) {
			message = scanner.nextLine();
			
			System.out.println("I`ve got " + message + " " + String.valueOf(message.equals("quit")));
			if (message.equalsIgnoreCase("quit")) {
				System.out.println("There is a problem");
				break inf;
			}
		}
	}

	public void parseInput() {
		
	}

}
